.class Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;
.super Landroid/media/session/MediaController$Callback;
.source "MusicControllerView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->registerMediaContorller(Landroid/media/RemoteController$OnClientUpdateListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;


# direct methods
.method constructor <init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V
    .registers 2
    .param p1, "this$0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 383
    iput-object p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-direct {p0}, Landroid/media/session/MediaController$Callback;-><init>()V

    return-void
.end method


# virtual methods
.method public onMetadataChanged(Landroid/media/MediaMetadata;)V
    .registers 6
    .param p1, "metadata"    # Landroid/media/MediaMetadata;

    .prologue
    .line 393
    invoke-super {p0, p1}, Landroid/media/session/MediaController$Callback;->onMetadataChanged(Landroid/media/MediaMetadata;)V

    .line 395
    const-string v3, "android.media.metadata.TITLE"

    invoke-virtual {p1, v3}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 396
    .local v2, "title":Ljava/lang/String;
    const-string v3, "android.media.metadata.ARTIST"

    invoke-virtual {p1, v3}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 397
    .local v1, "artist":Ljava/lang/String;
    const-string v3, "android.media.metadata.ALBUM_ARTIST"

    invoke-virtual {p1, v3}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 398
    .local v0, "albumArtist":Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_22

    .line 399
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_22

    .line 400
    move-object v1, v0

    .line 403
    :cond_22
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v3, v2, v1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->onClientMetadataUpdate(Ljava/lang/String;Ljava/lang/String;)V

    .line 404
    return-void
.end method

.method public onPlaybackStateChanged(Landroid/media/session/PlaybackState;)V
    .registers 5
    .param p1, "state"    # Landroid/media/session/PlaybackState;

    .prologue
    .line 386
    invoke-super {p0, p1}, Landroid/media/session/MediaController$Callback;->onPlaybackStateChanged(Landroid/media/session/PlaybackState;)V

    .line 387
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {p1}, Landroid/media/session/PlaybackState;->getState()I

    move-result v2

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->isPlayingState(I)Z
    invoke-static {v1, v2}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$800(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;I)Z

    move-result v0

    .line 388
    .local v0, "playing":Z
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v1, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->onClientPlaybackStateUpdate(Z)V

    .line 389
    return-void
.end method
